using System;
using System.Diagnostics;

namespace IBNet
{
   /// <summary>
   /// Represents a stock contract that trades on SMART exchanges.
   /// </summary>
   /// <seealso cref="Contract"/>
   public class Stock : Contract
   {
      /// <summary>
      /// Creates a new instance of Stock.
      /// </summary>
      /// <param name="symbol">The stock symbol.</param>
      public Stock(string symbol)
         : base(symbol, SecurityType.Stock, "SMART", null, "USD")
      {
      }

      /// <summary>
      /// Creates a new instance of Stock for a specific exchange.
      /// </summary>
      /// <param name="symbol">Symbol for the equity contract. See <see cref="Contract.Symbol"/>.</param>
      /// <param name="exchange">Exchange for the equity contract. See <see cref="Contract.Exchange"/></param>
      public Stock(string symbol, string exchange)
         : base(symbol, SecurityType.Stock, exchange, null, "USD")
      {
      }
   }
}
